package com.jxd.project.wzgl.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jxd.project.wzgl.dto.QueryGoodsLogDTO;
import com.jxd.project.menu.model.GoodsLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IGoodsLogDao extends BaseMapper<GoodsLog> {
    /**
     * 根据仓库、物资名称、物资id查询物资日志
     * @param queryGoodsLogDTO
     * @return
     */
    List<GoodsLog> selectGoodsLogWithQueryGoodsLogDTO(IPage<GoodsLog> page,@Param("queryGoodsLogDTO") QueryGoodsLogDTO queryGoodsLogDTO);


    /**
     * 根据物资id删除物资日志（废弃，原物理删除时生效）
     * @param goodsIds
     * @return
     */
    boolean delLogByGoodsIds(List<Integer> goodsIds);


}
